#ifndef STREAMLISTENER_H
#define STREAMLISTENER_H

#include <Ogre.h>

class StreamListener : public Ogre::RenderTargetListener
{
  public:
    StreamListener(Ogre::RenderWindow *win, Ogre::Camera *cam, char *filename);
    void postRenderTargetUpdate(const Ogre::RenderTargetEvent &evt);
    virtual ~StreamListener() {}
  protected:
  private:
    Ogre::RenderWindow *window;
    Ogre::Camera *camera;
    Ogre::TexturePtr texture;
    long count, bytes;
    int fd;
};

#endif // STREAMLISTENER_H
